home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / gas / makefile < prev    next >
Encoding:
Makefile  |  1994-12-17  |  18.0 KB  |  583 lines

  1. # Makefile generated by "configure.bat"
  2. all.dos : as.new gasp.new
  3. ## @configure_input@
  4. # Makefile for GNU Assembler
  5. #   Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
  6.  
  7. # This file is part of GNU GAS.
  8.  
  9. # GNU GAS is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2, or (at your option)
  12. # any later version.
  13.  
  14. # GNU GAS is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18.  
  19. # You should have received a copy of the GNU General Public License
  20. # along with GNU GAS; see the file COPYING.  If not, write to
  21. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  
  23. # The targets for external use include:
  24. # all, doc, proto, install, uninstall, includes, TAGS,
  25. # clean, mostlyclean, distclean, realclean, stage1, stage2, stage3, stage4.
  26.  
  27. # Variables that exist for you to override.
  28. # See below for how to change them for certain systems.
  29.  
  30. VPATH = .
  31. srcdir = .
  32. srcroot = $(srcdir)/..
  33.  
  34. target_alias = go32
  35. prefix = 
  36.  
  37. program_transform_name = @program_transform_name@
  38. exec_prefix = @exec_prefix@
  39. bindir = $(exec_prefix)/bin
  40. libdir = $(exec_prefix)/lib
  41. tooldir = $(libdir)/$(target_alias)
  42.  
  43. datadir = $(prefix)/lib
  44. mandir = $(prefix)/man
  45. man1dir = $(mandir)/man1
  46. man2dir = $(mandir)/man2
  47. man3dir = $(mandir)/man3
  48. man4dir = $(mandir)/man4
  49. man5dir = $(mandir)/man5
  50. man6dir = $(mandir)/man6
  51. man7dir = $(mandir)/man7
  52. man8dir = $(mandir)/man8
  53. man9dir = $(mandir)/man9
  54. infodir = $(prefix)/info
  55. includedir = $(prefix)/include
  56. docdir = $(datadir)/doc
  57.  
  58. VERSION=2.5.2
  59.  
  60. SHELL = /bin/sh
  61.  
  62. INSTALL = $${srcroot}/install.sh -c
  63. INSTALL_PROGRAM = $(INSTALL)
  64. INSTALL_DATA = $(INSTALL)
  65. INSTALL_XFORM = $(INSTALL) -t='-e "$(program_transform_name)"'
  66. INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
  67.  
  68. DISTSTUFF= make-gas.com
  69.  
  70. AR = ar
  71. AR_FLAGS = qv
  72. BISON = bison -y
  73. MAKEINFO = makeinfo
  74. TEXI2DVI = texi2dvi
  75. RANLIB = ranlib
  76. CC = gcc
  77. CFLAGS = -g
  78.  
  79. MAKEOVERRIDES=
  80.  
  81. AS_FOR_TARGET = $${here}/as.new
  82.  
  83. CC_FOR_TARGET = ` \
  84.   if [ -f $${here}/../gcc/Makefile ] ; then \
  85.     echo $${here}/../gcc/xgcc -B$${here}/../gcc/; \
  86.   else \
  87.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  88.       echo $(CC); \
  89.     else \
  90.       echo gcc | sed '$(program_transform_name)'; \
  91.     fi; \
  92.   fi`
  93.  
  94. NM=nm
  95. NM_FOR_TARGET = ` \
  96.   if [ -f $${here}/../binutils/Makefile ] ; then \
  97.     echo $${here}/../binutils/nm ; \
  98.   else \
  99.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  100.       echo $(NM); \
  101.     else \
  102.       echo nm | sed '$(program_transform_name)' ; \
  103.     fi; \
  104.   fi`
  105.  
  106. OBJDUMP=objdump
  107. OBJDUMP_FOR_TARGET = ` \
  108.   if [ -f $${here}/../binutils/Makefile ] ; then \
  109.     echo $${here}/../binutils/objdump ; \
  110.   else \
  111.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  112.       echo $(OBJDUMP); \
  113.     else \
  114.       echo objdump | sed '$(program_transform_name)' ; \
  115.     fi; \
  116.   fi`
  117.  
  118. FLAGS_TO_PASS = \
  119.     "prefix=$(prefix)" \
  120.     "exec_prefix=$(exec_prefix)" \
  121.     "tooldir=$(tooldir)" \
  122.     "AR=$(AR)" \
  123.     "AR_FLAGS=$(AR_FLAGS)" \
  124.     "CC=$(CC)" \
  125.     "CFLAGS=$(CFLAGS)" \
  126.     "RANLIB=$(RANLIB)" \
  127.     "LOADLIBES=$(LOADLIBES)" \
  128.     "LDFLAGS=$(LDFLAGS)" \
  129.     "BISON=$(BISON)" \
  130.     "LEX=$(LEX)" \
  131.     "MAKEINFO=$(MAKEINFO)" \
  132.     "INSTALL=$(INSTALL)" \
  133.     "INSTALL_DATA=$(INSTALL_DATA)" \
  134.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
  135.  
  136. RUNTEST=runtest
  137. CHECKFLAGS= \
  138.     "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
  139.     "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
  140.     "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
  141.     "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
  142.     "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  143.     "RUNTEST=$(RUNTEST)"
  144.  
  145. # Lists of files for various purposes.
  146.  
  147. REAL_SOURCES = \
  148.     $(srcdir)/app.c \
  149.     $(srcdir)/as.c \
  150.     $(srcdir)/atof-generic.c \
  151.     $(srcdir)/bignum-copy.c \
  152.     $(srcdir)/cond.c \
  153.     $(srcdir)/expr.c \
  154.     $(srcdir)/flonum-konst.c \
  155.     $(srcdir)/flonum-copy.c \
  156.     $(srcdir)/flonum-mult.c \
  157.     $(srcdir)/frags.c \
  158.     $(srcdir)/hash.c \
  159.     $(srcdir)/hex-value.c \
  160.     $(srcdir)/input-file.c \
  161.     $(srcdir)/input-scrub.c \
  162.     $(srcdir)/literal.c \
  163.     $(srcdir)/messages.c \
  164.     $(srcdir)/output-file.c \
  165.     $(srcdir)/read.c \
  166.     $(srcdir)/subsegs.c \
  167.     $(srcdir)/symbols.c \
  168.     $(srcdir)/write.c \
  169.     $(srcdir)/listing.c \
  170.     $(srcdir)/ecoff.c \
  171.     $(srcdir)/stabs.c \
  172.     $(srcdir)/xmalloc.c
  173.  
  174. # in an expedient order
  175. LINKED_SOURCES = \
  176.     targ-cpu.c \
  177.     obj-format.c \
  178.     atof-targ.c
  179.  
  180. SOURCES = $(LINKED_SOURCES) $(REAL_SOURCES)
  181.  
  182. REAL_HEADERS = \
  183.     $(srcdir)/as.h \
  184.     $(srcdir)/bignum.h \
  185.     $(srcdir)/expr.h \
  186.     $(srcdir)/flonum.h \
  187.     $(srcdir)/frags.h \
  188.     $(srcdir)/hash.h \
  189.     $(srcdir)/input-file.h \
  190.     $(srcdir)/listing.h \
  191.     $(srcdir)/tc.h \
  192.     $(srcdir)/obj.h \
  193.     $(srcdir)/read.h \
  194.     $(srcdir)/struc-symbol.h \
  195.     $(srcdir)/subsegs.h \
  196.     $(srcdir)/symbols.h \
  197.     $(srcdir)/write.h \
  198.     $(srcdir)/ecoff.h
  199.  
  200. LINKED_HEADERS = \
  201.     targ-env.h \
  202.     targ-cpu.h \
  203.     obj-format.h \
  204.     atof-targ.h
  205.  
  206. HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
  207.  
  208. # @target_frag@
  209.  
  210. OBJS = \
  211.     targ-cpu.o \
  212.     obj-format.o \
  213.     atof-targ.o \
  214.     app.o \
  215.     as.o \
  216.     atof-generic.o \
  217.     bignum-copy.o \
  218.     cond.o \
  219.     expr.o \
  220.     flonum-konst.o \
  221.     flonum-copy.o \
  222.     flonum-mult.o \
  223.     frags.o \
  224.     hash.o \
  225.     hex-value.o \
  226.     input-file.o \
  227.     input-scrub.o \
  228.     literal.o \
  229.     messages.o \
  230.     output-file.o \
  231.     read.o \
  232.     subsegs.o \
  233.     symbols.o \
  234.     write.o \
  235.     listing.o \
  236.     ecoff.o \
  237.     stabs.o \
  238.     xmalloc.o \
  239.     $(TE_OBJS)
  240.  
  241. # These are objects we know we'll be pulling in from other directories.
  242. # For VMS, we have to build them explicitly.
  243. VMS_OTHER_OBJS = \
  244.     ../libiberty/obstack.o \
  245.     ../libiberty/strdup.o \
  246.     ../libiberty/strncasecmp.o \
  247.     ../libiberty/concat.o \
  248.     ../libiberty/getopt.o \
  249.     ../libiberty/getopt1.o \
  250.     ../libiberty/getruntime.o
  251.  
  252. all: .gdbinit as.new gasp.new
  253. dummy:
  254.     @srcroot=`cd $(srcroot); pwd`; export srcroot; \
  255.     (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
  256.  
  257. dvi info install-info clean-info:
  258.     @srcroot=`cd $(srcroot); pwd`; export srcroot; \
  259.     (cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
  260.  
  261. make-gas.com: stamp-mk.com
  262. stamp-mk.com: vmsconf.sh Makefile
  263.     sh $(srcdir)/vmsconf.sh $(OBJS) $(VMS_OTHER_OBJS) > new-make.com
  264.     $(srcdir)/../move-if-change new-make.com $(srcdir)/make-gas.com
  265.     touch stamp-mk.com
  266.  
  267. # Now figure out from those variables how to compile and link.
  268.  
  269. # This is the variable actually used when we compile.
  270. ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
  271.  
  272. # How to link with both our special library facilities
  273. # and the system's installed libraries.
  274.  
  275. LIBS = ../opcodes/libopcodes.a ../bfd/libbfd.a $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
  276.  
  277. # Specify the directories to be searched for header files.
  278. # Both . and srcdir are used, in that order,
  279. # so that tm.h and config.h will be found in the compilation
  280. # subdirectory rather than in the source directory.
  281. INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/..
  282. SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
  283.  
  284. # Always use -I$(srcdir)/config when compiling.
  285. .c.o:
  286.     $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
  287.  
  288. # This tells GNU make version 3 not to export all the variables
  289. # defined in this file into the environment.
  290. .NOEXPORT:
  291.  
  292. # Files to be copied away after each stage in building.
  293. STAGESTUFF = *.o as.new gasp.new
  294.  
  295. $(OBJS): ../bfd/bfd.h
  296.  
  297. as.new: $(OBJS) $(LIBS)
  298.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
  299.  
  300. $(OBJS): config.h
  301.  
  302. gasp.new: gasp.o
  303.     $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
  304.  
  305. installcheck:
  306.     @echo No installcheck target is available yet for the GNU assembler.
  307.  
  308. check:
  309.     @(here=`pwd` ; export here ; \
  310.       cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
  311.  
  312. config.status: configure
  313.     if [ -r config.status ]; then \
  314.       sh ./config.status --recheck ; \
  315.     else \
  316.       echo You must configure gas.  Look at the INSTALL file for details. ; \
  317.       exit 1 ; \
  318.     fi
  319.  
  320. config-stamp: Makefile conf
  321.     -rm -f config.new config-stamp
  322.     echo '/* config.h.  Generated automatically by make.  */' > config.new
  323.     echo '#ifndef GAS_VERSION'            >> config.new
  324.     echo '#define GAS_VERSION "$(VERSION)"'        >> config.new
  325.     echo ''                        >> config.new
  326.     cat conf                    >> config.new
  327.     echo '#endif /* GAS_VERSION */'            >> config.new
  328.     $(srcdir)/../move-if-change config.new config.h
  329.     touch config-stamp
  330.  
  331. # Compiling object files from source files.
  332.  
  333. gasp.o : gasp.c config.h
  334. app.o : app.c as.h targ-env.h obj-format.h \
  335.   targ-cpu.h struc-symbol.h \
  336.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
  337. as.o : as.c as.h targ-env.h obj-format.h output-file.h \
  338.   targ-cpu.h struc-symbol.h \
  339.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h subsegs.h \
  340.   tc.h obj.h config.h
  341. atof-generic.o : atof-generic.c as.h targ-env.h obj-format.h \
  342.   targ-cpu.h struc-symbol.h \
  343.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
  344. bignum-copy.o : bignum-copy.c as.h \
  345.   targ-env.h obj-format.h \
  346.   targ-cpu.h struc-symbol.h \
  347.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
  348. cond.o : cond.c as.h targ-env.h obj-format.h \
  349.   targ-cpu.h struc-symbol.h \
  350.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
  351.  
  352. debug.o : debug.c as.h targ-env.h obj-format.h \
  353.   targ-cpu.h struc-symbol.h \
  354.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  355.   subsegs.h 
  356. expr.o : expr.c as.h targ-env.h obj-format.h \
  357.   targ-cpu.h  struc-symbol.h \
  358.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
  359.  
  360. flonum-konst.o : flonum-konst.c flonum.h bignum.h 
  361. flonum-copy.o : flonum-copy.c as.h targ-env.h obj-format.h \
  362.   targ-cpu.h  struc-symbol.h \
  363.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
  364. flonum-mult.o : flonum-mult.c flonum.h bignum.h 
  365. frags.o : frags.c as.h targ-env.h obj-format.h \
  366.   targ-cpu.h  struc-symbol.h \
  367.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  368.   subsegs.h  
  369. hash.o : hash.c as.h targ-env.h obj-format.h \
  370.   targ-cpu.h  struc-symbol.h \
  371.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
  372. hex-value.o : hex-value.c 
  373. input-file.o : input-file.c as.h \
  374.    targ-env.h obj-format.h targ-cpu.h \
  375.    struc-symbol.h write.h flonum.h bignum.h expr.h \
  376.   frags.h hash.h read.h symbols.h tc.h obj.h input-file.h 
  377. input-scrub.o : input-scrub.c   \
  378.   as.h targ-env.h obj-format.h \
  379.   targ-cpu.h  struc-symbol.h \
  380.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  381.   input-file.h 
  382. listing.o : listing.c as.h targ-env.h flonum.h bignum.h \
  383.   listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
  384.   frags.h hash.h read.h symbols.h tc.h obj.h input-file.h subsegs.h
  385. literal.o : literal.c subsegs.h as.h targ-env.h obj-format.h \
  386.   targ-cpu.h  struc-symbol.h \
  387.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
  388. messages.o : messages.c as.h targ-env.h obj-format.h \
  389.   targ-cpu.h  struc-symbol.h \
  390.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
  391. output-file.o : output-file.c as.h targ-env.h obj-format.h \
  392.   targ-cpu.h  struc-symbol.h \
  393.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  394.   output-file.h 
  395. read.o : read.c as.h targ-env.h obj-format.h \
  396.   targ-cpu.h  struc-symbol.h \
  397.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
  398. subsegs.o : subsegs.c as.h targ-env.h obj-format.h \
  399.   targ-cpu.h  struc-symbol.h \
  400.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  401.   subsegs.h  
  402. symbols.o : symbols.c as.h targ-env.h obj-format.h \
  403.   targ-cpu.h  struc-symbol.h \
  404.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  405.    subsegs.h 
  406. write.o : write.c as.h targ-env.h obj-format.h \
  407.   targ-cpu.h  struc-symbol.h \
  408.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  409.   subsegs.h  output-file.h 
  410. ecoff.o : ecoff.c as.h targ-env.h obj-format.h \
  411.   targ-cpu.h  struc-symbol.h \
  412.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  413.   ecoff.h $(srcdir)/../include/coff/internal.h \
  414.   $(srcdir)/../include/coff/sym.h $(srcdir)/../include/coff/ecoff.h \
  415.   $(srcdir)/../include/coff/symconst.h $(srcdir)/../include/aout/stab_gnu.h
  416. stabs.o : stabs.c as.h targ-env.h obj-format.h \
  417.   targ-cpu.h  struc-symbol.h \
  418.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
  419.   subsegs.h $(srcdir)/../include/aout/stab_gnu.h
  420. xmalloc.o : xmalloc.c
  421. atof-targ.o : atof-targ.c as.h targ-env.h obj-format.h \
  422.   targ-cpu.h struc-symbol.h \
  423.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
  424.   symbols.h tc.h obj.h 
  425. obj-format.o : obj-format.c as.h targ-env.h obj-format.h \
  426.   targ-cpu.h struc-symbol.h \
  427.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
  428.   subsegs.h symbols.h tc.h obj.h  
  429. targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
  430.   targ-cpu.h struc-symbol.h \
  431.   write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
  432.   symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
  433.  
  434. # Remake the info files.
  435.  
  436. doc: $(srcdir)/as.info
  437.  
  438. $(srcdir)/as.info: $(srcdir)/doc/as.texinfo
  439.     @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)    
  440.  
  441. diststuff: $(DISTSTUFF)
  442.  
  443. clean-here:
  444.     -rm -f $(STAGESTUFF) core stamp-mk.com
  445.  
  446. clean mostlyclean: clean-here
  447.     @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
  448.     @if [ -d testsuite ] ; then \
  449.       cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
  450.     else true; fi
  451.  
  452. # Like clean but also delete the links made to configure gas.
  453. distclean: clean-here
  454.     @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
  455.     @if [ -d testsuite ] ; then \
  456.       cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
  457.     else true; fi
  458.     -rm -f config.status Makefile targ-env.h targ-cpu.h \
  459.         targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
  460.         config-stamp config.h conf config.log config.cache .gdbinit
  461. realclean: clean distclean
  462.     -rm -rf $(DISTSTUFF)
  463.  
  464. # Entry points `install', `includes' and `uninstall'.
  465.  
  466. # Copy the files into directories where they will be run.
  467. install:
  468.     srcroot=`cd $(srcroot); pwd`; export srcroot; \
  469.     $(INSTALL_XFORM) as.new $(bindir)/as; \
  470.     $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
  471.     n=`echo as | sed '$(program_transform_name)'`; \
  472.     if [ -d $(tooldir) ]; then \
  473.       if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
  474.       rm -f $(tooldir)/bin/as; \
  475.       ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
  476.        || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
  477.     else true; fi
  478.     srcroot=`cd $(srcroot); pwd`; export srcroot; \
  479.     $(INSTALL_XFORM) gasp.new $(bindir)/gasp; \
  480.     n=`echo gasp | sed '$(program_transform_name)' `; \
  481.     if [ -d $(tooldir) ]; then \
  482.       if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
  483.       rm -f $(tooldir)/bin/gasp; \
  484.       ln $(bindir)/$$n $(tooldir)/bin/gasp >/dev/null 2>/dev/null \
  485.        || $(INSTALL_PROGRAM) gasp.new $(tooldir)/bin/gasp; \
  486.     else true; fi
  487.  
  488. # Cancel installation by deleting the installed files.
  489. uninstall:
  490.     -n=`t='$(program_transform_name)'; echo as | sed $$t`; \
  491.     rm -f $(bindir)/$$n; \
  492.     rm -f $(mandir)/$$n.1
  493.     -n=`t='$(program_transform_name)'; echo gasp | sed $$t`; \
  494.     rm -f $(bindir)/$$n; \
  495.  
  496. # These exist for maintenance purposes.
  497.  
  498. tags TAGS: force
  499.     etags $(REAL_HEADERS) $(REAL_SOURCES) $(srcdir)/config/*.[hc] $(srcdir)/README $(srcdir)/Makefile.in
  500.  
  501. bootstrap: as.new force
  502.     $(MAKE) stage1
  503.     rm -f stage && ln -s stage1 stage
  504.     $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
  505.     $(MAKE) stage2
  506.     rm -f stage && ln -s stage2 stage
  507.     $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
  508.     $(MAKE) comparison against=stage2
  509.  
  510. bootstrap2: force
  511.     rm -f stage && ln -s stage1 stage
  512.     $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
  513.     $(MAKE) stage2
  514.     rm -f stage && ln -s stage2 stage
  515.     $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
  516.     $(MAKE) comparison against=stage2
  517.  
  518. bootstrap3: force
  519.     rm -f stage && ln -s stage2 stage
  520.     $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
  521.     $(MAKE) comparison against=stage2
  522.  
  523. # Copy the object files from a particular stage into a subdirectory.
  524. stage1: force
  525.     -mkdir stage1
  526.     -mv $(STAGESTUFF) stage1
  527.     if [ -f stage1/as.new -a ! -f stage1/as ] ; then (cd stage1 ; ln -s as.new as) ; fi
  528.  
  529. stage2: force
  530.     -mkdir stage2
  531.     -mv $(STAGESTUFF) stage2
  532.     if [ -f stage2/as.new -a ! -f stage2/as ] ; then (cd stage2 ; ln -s as.new as) ; fi
  533.  
  534. stage3: force
  535.     -mkdir stage3
  536.     -mv $(STAGESTUFF) stage3
  537.     if [ -f stage3/as.new -a ! -f stage3/as ] ; then (cd stage3 ; ln -s as.new as) ; fi
  538.  
  539. against=stage2
  540.  
  541. # This rule is derived from corresponding code in the Makefile.in for gcc.
  542. # The "tail +16c" is to bypass headers which may include timestamps or
  543. # temporary assembly file names.
  544. comparison: force
  545.     x=0 ; \
  546.     for file in $(STAGESTUFF) ; do \
  547.       tail +16c ./$$file > tmp-foo1; \
  548.       if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
  549.         if cmp tmp-foo1 tmp-foo2 ; then \
  550.           true ; \
  551.         else \
  552.           echo $$file differs ; \
  553.           x=1 ; \
  554.         fi ; \
  555.       else true; fi ; \
  556.     done ; \
  557.     exit $$x
  558.     -rm -f tmp-foo*
  559.  
  560. de-stage1: force
  561.     - (cd stage1 ; rm -f as ; mv -f * ..)
  562.     - rmdir stage1
  563.  
  564. de-stage2: force
  565.     - (cd stage2 ; rm -f as ; mv -f * ..)
  566.     - rmdir stage2
  567.  
  568. de-stage3: force
  569.     - (cd stage3 ; rm -f as ; mv -f * ..)
  570.     - rmdir stage3
  571.  
  572. #In GNU Make, ignore whether `stage*' exists.
  573. .PHONY: stage1 stage2 stage3 stage4 clean mostlyclean realclean distclean
  574. .PHONY: TAGS bootstrap
  575.  
  576. force:
  577.  
  578. not-Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
  579.         $(srcdir)/configure.in config.status
  580.     $(SHELL) ./config.status
  581. .gdbinit: $(srcdir)/gdbinit.in config.status
  582.     $(SHELL) ./config.status
  583.